package top.ljlgithub.api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import top.ljlgithub.api.bean.Cat;
import top.ljlgithub.api.bean.PageCondition;
import top.ljlgithub.api.vo.CatParam;

import java.util.List;
@Mapper
@Component
public interface CatMapper {
    List<Cat> getCateList(Integer startIndex,Integer pagesize);
    List<Cat> getCateListByType(Integer type);
    Cat findCateById(Integer id);
    void deleteCateById(Integer id);
    void updateCate(Integer id,String cat_name);
    void addCate(Cat cat);
    List<Cat> getChildCateList(Integer id);
    Integer getTotal();

}
